import axios from '../../../utils/http'
export async function getData(currentPage, pageSize, directorName, centerName) {
  const {
    data
  } = await axios.get('/trainingCenter/trainingCenterPageData', {
    params: {
      currentPage: currentPage,
      pageSize: pageSize,
      directorName: directorName,
      centerName: centerName
    }

  })
  return data
}

export async function getListDatatrain() {
  const {
    data
  } = await axios.get('/trainingCenter/trainingCenterList')
  return data
}
